/**
 *	@define:hjc -> core -> 网络消息
 */

namespace hjc {

	export class Message {

		public scope: number;		//业务范围
		public route: number;		//业务路由
		public detail?: number;		//业务具象	
		public data?: Uint8Array;

		public constructor(tm: TMessage) {
			// for (let attr in Scope) {
			// 	if (attr === tm.scope) break;
			// 	else this.scope++
			// }
			this.scope = tm.scope;
			this.route = tm.route;
			this.detail = tm.detail;
			this.data = tm.data;
		}
	}
}